Пример #1
0
		public void GetCommonBaseTypeSame() {
			SymbolTypeMap<TestToken> symbolTypeMap = new SymbolTypeMap<TestToken>();
			Assert.Equal(typeof(TestValue), symbolTypeMap.GetCommonBaseType(typeof(TestValue), typeof(TestValue)));
		}
Пример #2
0
		public void GetCommonBaseTypeAncestor() {
			SymbolTypeMap<TestToken> symbolTypeMap = new SymbolTypeMap<TestToken>();
			Assert.Equal(typeof(TestOperation), symbolTypeMap.GetCommonBaseType(typeof(TestAdd), typeof(TestSubtract)));
		}