public void GeneratesIdForUnknownTypes() { var tt = new TypeIdTranslator(new[] { typeof(TestA) }); var actual = tt.Translate(typeof(ITestB)); Assert.Equal("ITB.2D74FBC0", actual); }
public void GeneratesIdForKnownTypes() { var tt = new TypeIdTranslator(new[] { typeof(TestA), typeof(ITestB) }); var actual = tt.Translate(typeof(TestA)); Assert.Equal("TA.01993A36", actual); }