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