예제 #1
0
        public void GeneratesIdForUnknownTypes()
        {
            var tt     = new TypeIdTranslator(new[] { typeof(TestA) });
            var actual = tt.Translate(typeof(ITestB));

            Assert.Equal("ITB.2D74FBC0", actual);
        }
예제 #2
0
        public void GeneratesIdForKnownTypes()
        {
            var tt     = new TypeIdTranslator(new[] { typeof(TestA), typeof(ITestB) });
            var actual = tt.Translate(typeof(TestA));

            Assert.Equal("TA.01993A36", actual);
        }