public void PrimitiveTypesMappingTest(string input, Type expectedType) { IPrimitiveMappingStrategy primitiveMappingStrategy = new PrimitiveMappingStrategy(); var actual = primitiveMappingStrategy.Map(input, expectedType); Assert.AreEqual(expectedType, actual.GetType()); }
public void WrongTypeMappingTest() { IPrimitiveMappingStrategy primitiveMappingStrategy = new PrimitiveMappingStrategy(); primitiveMappingStrategy.Map("some data", typeof(TestClass)); }