public void CreateMapper_Expected_XmlMapper() { StringInterrogator stringInterrogator = new StringInterrogator(); IMapper mapper = stringInterrogator.CreateMapper(XmlGiven()); Type expected = typeof(XmlMapper); Type actual = mapper.GetType(); Assert.AreEqual(expected, actual); }
public void StringInterrogator_CreateMapper_Expected_JsonMapper() { var stringInterrogator = new StringInterrogator(); var mapper = stringInterrogator.CreateMapper(JsonGiven()); var expected = typeof(JsonMapper); var actual = mapper.GetType(); Assert.AreEqual(expected, actual); }