1 type derived from BaseClass
Microsoft.Build.Engine.UnitTests (1)
BackEnd\BinaryTranslator_Tests.cs (1)
974
private sealed class DerivedClass :
BaseClass
10 instantiations of BaseClass
Microsoft.Build.Engine.UnitTests (10)
BackEnd\BinaryTranslator_Tests.cs (10)
339
BaseClass value = new
BaseClass
(1);
399
BaseClass[] value = new BaseClass[] { new
BaseClass
(1), new
BaseClass
(2) };
468
value["foo"] = new
BaseClass
(1);
469
value["alpha"] = new
BaseClass
(2);
507
value["foo"] = new
BaseClass
(1);
508
value["alpha"] = new
BaseClass
(2);
599
new
BaseClass
(1),
600
new
BaseClass
(2),
926
BaseClass packet = new
BaseClass
();
67 references to BaseClass
Microsoft.Build.Engine.UnitTests (67)
BackEnd\BinaryTranslator_Tests.cs (67)
339
BaseClass
value = new BaseClass(1);
340
TranslationHelpers.GetWriteTranslator().Translate(ref value,
BaseClass
.FactoryForDeserialization);
342
BaseClass
deserializedValue = null;
343
TranslationHelpers.GetReadTranslator().Translate(ref deserializedValue,
BaseClass
.FactoryForDeserialization);
354
BaseClass
value = null;
355
TranslationHelpers.GetWriteTranslator().Translate(ref value,
BaseClass
.FactoryForDeserialization);
357
BaseClass
deserializedValue = null;
358
TranslationHelpers.GetReadTranslator().Translate(ref deserializedValue,
BaseClass
.FactoryForDeserialization);
399
BaseClass
[] value = new
BaseClass
[] { new BaseClass(1), new BaseClass(2) };
400
TranslationHelpers.GetWriteTranslator().TranslateArray(ref value,
BaseClass
.FactoryForDeserialization);
402
BaseClass
[] deserializedValue = null;
403
TranslationHelpers.GetReadTranslator().TranslateArray(ref deserializedValue,
BaseClass
.FactoryForDeserialization);
405
Assert.True(TranslationHelpers.CompareCollections(value, deserializedValue,
BaseClass
.Comparer));
414
BaseClass
[] value = null;
415
TranslationHelpers.GetWriteTranslator().TranslateArray(ref value,
BaseClass
.FactoryForDeserialization);
417
BaseClass
[] deserializedValue = null;
418
TranslationHelpers.GetReadTranslator().TranslateArray(ref deserializedValue,
BaseClass
.FactoryForDeserialization);
420
Assert.True(TranslationHelpers.CompareCollections(value, deserializedValue,
BaseClass
.Comparer));
467
Dictionary<string,
BaseClass
> value = new Dictionary<string,
BaseClass
>(StringComparer.OrdinalIgnoreCase);
471
TranslationHelpers.GetWriteTranslator().TranslateDictionary(ref value, StringComparer.OrdinalIgnoreCase,
BaseClass
.FactoryForDeserialization);
473
Dictionary<string,
BaseClass
> deserializedValue = null;
474
TranslationHelpers.GetReadTranslator().TranslateDictionary(ref deserializedValue, StringComparer.OrdinalIgnoreCase,
BaseClass
.FactoryForDeserialization);
477
Assert.Equal(0,
BaseClass
.Comparer.Compare(value["foo"], deserializedValue["foo"]));
478
Assert.Equal(0,
BaseClass
.Comparer.Compare(value["alpha"], deserializedValue["alpha"]));
479
Assert.Equal(0,
BaseClass
.Comparer.Compare(value["FOO"], deserializedValue["FOO"]));
489
Dictionary<string,
BaseClass
> value = null;
491
TranslationHelpers.GetWriteTranslator().TranslateDictionary(ref value, StringComparer.OrdinalIgnoreCase,
BaseClass
.FactoryForDeserialization);
493
Dictionary<string,
BaseClass
> deserializedValue = null;
494
TranslationHelpers.GetReadTranslator().TranslateDictionary(ref deserializedValue, StringComparer.OrdinalIgnoreCase,
BaseClass
.FactoryForDeserialization);
506
Dictionary<string,
BaseClass
> value = new Dictionary<string,
BaseClass
>();
510
TranslationHelpers.GetWriteTranslator().TranslateDictionary<Dictionary<string,
BaseClass
>,
BaseClass
>(ref value,
BaseClass
.FactoryForDeserialization);
512
Dictionary<string,
BaseClass
> deserializedValue = null;
513
TranslationHelpers.GetReadTranslator().TranslateDictionary<Dictionary<string,
BaseClass
>,
BaseClass
>(ref deserializedValue,
BaseClass
.FactoryForDeserialization);
516
Assert.Equal(0,
BaseClass
.Comparer.Compare(value["foo"], deserializedValue["foo"]));
517
Assert.Equal(0,
BaseClass
.Comparer.Compare(value["alpha"], deserializedValue["alpha"]));
528
Dictionary<string,
BaseClass
> value = null;
530
TranslationHelpers.GetWriteTranslator().TranslateDictionary<Dictionary<string,
BaseClass
>,
BaseClass
>(ref value,
BaseClass
.FactoryForDeserialization);
532
Dictionary<string,
BaseClass
> deserializedValue = null;
533
TranslationHelpers.GetReadTranslator().TranslateDictionary<Dictionary<string,
BaseClass
>,
BaseClass
>(ref deserializedValue,
BaseClass
.FactoryForDeserialization);
597
HashSet<
BaseClass
> values = new()
603
TranslationHelpers.GetWriteTranslator().TranslateHashSet(ref values,
BaseClass
.FactoryForDeserialization, capacity => new());
605
HashSet<
BaseClass
> deserializedValues = null;
606
TranslationHelpers.GetReadTranslator().TranslateHashSet(ref deserializedValues,
BaseClass
.FactoryForDeserialization, capacity => new());
614
HashSet<
BaseClass
> value = null;
615
TranslationHelpers.GetWriteTranslator().TranslateHashSet(ref value,
BaseClass
.FactoryForDeserialization, capacity => new());
617
HashSet<
BaseClass
> deserializedValue = null;
618
TranslationHelpers.GetReadTranslator().TranslateHashSet(ref deserializedValue,
BaseClass
.FactoryForDeserialization, capacity => new());
873
protected bool Equals(
BaseClass
other)
895
return Equals((
BaseClass
)obj);
906
public static IComparer<
BaseClass
> Comparer
924
public static
BaseClass
FactoryForDeserialization(ITranslator translator)
926
BaseClass
packet = new BaseClass();
944
private sealed class BaseClassComparer : IComparer<
BaseClass
>
958
public int Compare(
BaseClass
x,
BaseClass
y)
1047
return
BaseClass
.Comparer.Compare(x, y);