30 references to DataType
System.Private.Windows.Core.Tests (28)
System\Private\Windows\Ole\BinaryFormatUtilitesTestsBase.cs (2)
23
public MemoryStream CreateStream<T>(
DataType
dataType, T data) where T : notnull
28
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)
455
[EnumData<
DataType
>]
456
public void TryReadObjectFromStream_TypeDoesNotMatch(
DataType
dataType)
473
[EnumData<
DataType
>]
474
public void TryReadObjectFromStream_Class_DerivedAsBase(
DataType
dataType)
476
using BinaryFormatterScope scope = new(enable: dataType ==
DataType
.BinaryFormat);
477
using BinaryFormatterInClipboardDragDropScope clipboardScope = new(enable: dataType ==
DataType
.BinaryFormat);
512
[EnumData<
DataType
>]
513
public void TryReadObjectFromStream_Struct_AsNullable(
DataType
dataType)
515
using BinaryFormatterScope scope = new(enable: dataType ==
DataType
.BinaryFormat);
516
using BinaryFormatterInClipboardDragDropScope clipboardScope = new(enable: dataType ==
DataType
.BinaryFormat);
548
[EnumData<
DataType
>]
549
public void TryReadObjectFromStream_Int_AsNullableInt(
DataType
dataType)
600
[EnumData<
DataType
>]
601
public void TryReadObjectFromStream_Int_AsFloat(
DataType
dataType)
634
if (dataType ==
DataType
.BinaryFormat)
810
[EnumData<
DataType
>]
811
public void TryReadObjectFromStream_MyClass(
DataType
dataType)
813
using BinaryFormatterScope scope = new(enable: dataType ==
DataType
.BinaryFormat);
814
using BinaryFormatterInClipboardDragDropScope clipboardScope = new(enable: dataType ==
DataType
.BinaryFormat);
837
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);