30 references to DataType
System.Private.Windows.Core.Tests (28)
System\Private\Windows\Ole\BinaryFormatUtilitesTestsBase.cs (2)
18
public MemoryStream CreateStream<T>(
DataType
dataType, T data) where T : notnull
21
if (dataType ==
DataType
.Json)
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (26)
249
[EnumData<
DataType
>]
250
public void TryReadObjectFromStream_IntArray_TypedToBaseFails(
DataType
dataType)
272
[EnumData<
DataType
>]
273
public void TryReadObjectFromStream_IntArray_UntypedSucceeds(
DataType
dataType)
289
[EnumData<
DataType
>]
290
public void TryReadObjectFromStream_IntArray_TypedToBaseSucceeds(
DataType
dataType)
452
[EnumData<
DataType
>]
453
public void TryReadObjectFromStream_TypeDoesNotMatch(
DataType
dataType)
470
[EnumData<
DataType
>]
471
public void TryReadObjectFromStream_Class_DerivedAsBase(
DataType
dataType)
473
using BinaryFormatterScope scope = new(enable: dataType ==
DataType
.BinaryFormat);
474
using BinaryFormatterInClipboardDragDropScope clipboardScope = new(enable: dataType ==
DataType
.BinaryFormat);
509
[EnumData<
DataType
>]
510
public void TryReadObjectFromStream_Struct_AsNullable(
DataType
dataType)
512
using BinaryFormatterScope scope = new(enable: dataType ==
DataType
.BinaryFormat);
513
using BinaryFormatterInClipboardDragDropScope clipboardScope = new(enable: dataType ==
DataType
.BinaryFormat);
545
[EnumData<
DataType
>]
546
public void TryReadObjectFromStream_Int_AsNullableInt(
DataType
dataType)
597
[EnumData<
DataType
>]
598
public void TryReadObjectFromStream_Int_AsFloat(
DataType
dataType)
631
if (dataType ==
DataType
.BinaryFormat)
807
[EnumData<
DataType
>]
808
public void TryReadObjectFromStream_MyClass(
DataType
dataType)
810
using BinaryFormatterScope scope = new(enable: dataType ==
DataType
.BinaryFormat);
811
using BinaryFormatterInClipboardDragDropScope clipboardScope = new(enable: dataType ==
DataType
.BinaryFormat);
834
if (dataType ==
DataType
.BinaryFormat)
System.Windows.Forms.Tests (2)
System\Windows\Forms\Ole\BinaryFormatUtilitiesTests.cs (2)
39
using MemoryStream stream = CreateStream(
DataType
.BinaryFormat, value);
57
using MemoryStream stream = CreateStream(
DataType
.BinaryFormat, value);