1 type derived from BaseClass
Microsoft.Build.Engine.UnitTests (1)
BackEnd\BinaryTranslator_Tests.cs (1)
979
private sealed class DerivedClass :
BaseClass
10 instantiations of BaseClass
Microsoft.Build.Engine.UnitTests (10)
BackEnd\BinaryTranslator_Tests.cs (10)
344
BaseClass value = new
BaseClass
(1);
404
BaseClass[] value = new BaseClass[] { new
BaseClass
(1), new
BaseClass
(2) };
473
value["foo"] = new
BaseClass
(1);
474
value["alpha"] = new
BaseClass
(2);
512
value["foo"] = new
BaseClass
(1);
513
value["alpha"] = new
BaseClass
(2);
604
new
BaseClass
(1),
605
new
BaseClass
(2),
931
BaseClass packet = new
BaseClass
();
67 references to BaseClass
Microsoft.Build.Engine.UnitTests (67)
BackEnd\BinaryTranslator_Tests.cs (67)
344
BaseClass
value = new BaseClass(1);
345
TranslationHelpers.GetWriteTranslator().Translate(ref value,
BaseClass
.FactoryForDeserialization);
347
BaseClass
deserializedValue = null;
348
TranslationHelpers.GetReadTranslator().Translate(ref deserializedValue,
BaseClass
.FactoryForDeserialization);
359
BaseClass
value = null;
360
TranslationHelpers.GetWriteTranslator().Translate(ref value,
BaseClass
.FactoryForDeserialization);
362
BaseClass
deserializedValue = null;
363
TranslationHelpers.GetReadTranslator().Translate(ref deserializedValue,
BaseClass
.FactoryForDeserialization);
404
BaseClass
[] value = new
BaseClass
[] { new BaseClass(1), new BaseClass(2) };
405
TranslationHelpers.GetWriteTranslator().TranslateArray(ref value,
BaseClass
.FactoryForDeserialization);
407
BaseClass
[] deserializedValue = null;
408
TranslationHelpers.GetReadTranslator().TranslateArray(ref deserializedValue,
BaseClass
.FactoryForDeserialization);
410
Assert.True(TranslationHelpers.CompareCollections(value, deserializedValue,
BaseClass
.Comparer));
419
BaseClass
[] value = null;
420
TranslationHelpers.GetWriteTranslator().TranslateArray(ref value,
BaseClass
.FactoryForDeserialization);
422
BaseClass
[] deserializedValue = null;
423
TranslationHelpers.GetReadTranslator().TranslateArray(ref deserializedValue,
BaseClass
.FactoryForDeserialization);
425
Assert.True(TranslationHelpers.CompareCollections(value, deserializedValue,
BaseClass
.Comparer));
472
Dictionary<string,
BaseClass
> value = new Dictionary<string,
BaseClass
>(StringComparer.OrdinalIgnoreCase);
476
TranslationHelpers.GetWriteTranslator().TranslateDictionary(ref value, StringComparer.OrdinalIgnoreCase,
BaseClass
.FactoryForDeserialization);
478
Dictionary<string,
BaseClass
> deserializedValue = null;
479
TranslationHelpers.GetReadTranslator().TranslateDictionary(ref deserializedValue, StringComparer.OrdinalIgnoreCase,
BaseClass
.FactoryForDeserialization);
482
Assert.Equal(0,
BaseClass
.Comparer.Compare(value["foo"], deserializedValue["foo"]));
483
Assert.Equal(0,
BaseClass
.Comparer.Compare(value["alpha"], deserializedValue["alpha"]));
484
Assert.Equal(0,
BaseClass
.Comparer.Compare(value["FOO"], deserializedValue["FOO"]));
494
Dictionary<string,
BaseClass
> value = null;
496
TranslationHelpers.GetWriteTranslator().TranslateDictionary(ref value, StringComparer.OrdinalIgnoreCase,
BaseClass
.FactoryForDeserialization);
498
Dictionary<string,
BaseClass
> deserializedValue = null;
499
TranslationHelpers.GetReadTranslator().TranslateDictionary(ref deserializedValue, StringComparer.OrdinalIgnoreCase,
BaseClass
.FactoryForDeserialization);
511
Dictionary<string,
BaseClass
> value = new Dictionary<string,
BaseClass
>();
515
TranslationHelpers.GetWriteTranslator().TranslateDictionary<Dictionary<string,
BaseClass
>,
BaseClass
>(ref value,
BaseClass
.FactoryForDeserialization);
517
Dictionary<string,
BaseClass
> deserializedValue = null;
518
TranslationHelpers.GetReadTranslator().TranslateDictionary<Dictionary<string,
BaseClass
>,
BaseClass
>(ref deserializedValue,
BaseClass
.FactoryForDeserialization);
521
Assert.Equal(0,
BaseClass
.Comparer.Compare(value["foo"], deserializedValue["foo"]));
522
Assert.Equal(0,
BaseClass
.Comparer.Compare(value["alpha"], deserializedValue["alpha"]));
533
Dictionary<string,
BaseClass
> value = null;
535
TranslationHelpers.GetWriteTranslator().TranslateDictionary<Dictionary<string,
BaseClass
>,
BaseClass
>(ref value,
BaseClass
.FactoryForDeserialization);
537
Dictionary<string,
BaseClass
> deserializedValue = null;
538
TranslationHelpers.GetReadTranslator().TranslateDictionary<Dictionary<string,
BaseClass
>,
BaseClass
>(ref deserializedValue,
BaseClass
.FactoryForDeserialization);
602
HashSet<
BaseClass
> values = new()
608
TranslationHelpers.GetWriteTranslator().TranslateHashSet(ref values,
BaseClass
.FactoryForDeserialization, capacity => new());
610
HashSet<
BaseClass
> deserializedValues = null;
611
TranslationHelpers.GetReadTranslator().TranslateHashSet(ref deserializedValues,
BaseClass
.FactoryForDeserialization, capacity => new());
619
HashSet<
BaseClass
> value = null;
620
TranslationHelpers.GetWriteTranslator().TranslateHashSet(ref value,
BaseClass
.FactoryForDeserialization, capacity => new());
622
HashSet<
BaseClass
> deserializedValue = null;
623
TranslationHelpers.GetReadTranslator().TranslateHashSet(ref deserializedValue,
BaseClass
.FactoryForDeserialization, capacity => new());
878
protected bool Equals(
BaseClass
other)
900
return Equals((
BaseClass
)obj);
911
public static IComparer<
BaseClass
> Comparer
929
public static
BaseClass
FactoryForDeserialization(ITranslator translator)
931
BaseClass
packet = new BaseClass();
949
private sealed class BaseClassComparer : IComparer<
BaseClass
>
963
public int Compare(
BaseClass
x,
BaseClass
y)
1052
return
BaseClass
.Comparer.Compare(x, y);