public void ConvertModels_ShouldFailIfListsNull() { List <IGameDetailsModel> source = null; List <ExportedGameModel> output = null; Assert.Throws <NullReferenceException>(() => GameDetailsModelToXmlSerializer.MapModels(source, output)); }
public void CheckIfPathIsValid_ShouldPassIfPathValid(string path) { Assert.True(GameDetailsModelToXmlSerializer.CheckIfPathIsValid(path)); }
public void CheckIfPathIsValid_ShouldFailIfPathEmpty() { Assert.Throws <ArgumentException>("path", () => GameDetailsModelToXmlSerializer.CheckIfPathIsValid("")); }