Example #1
0
        public void ConvertModels_ShouldFailIfListsNull()
        {
            List <IGameDetailsModel> source = null;
            List <ExportedGameModel> output = null;

            Assert.Throws <NullReferenceException>(() => GameDetailsModelToXmlSerializer.MapModels(source, output));
        }
Example #2
0
 public void CheckIfPathIsValid_ShouldPassIfPathValid(string path)
 {
     Assert.True(GameDetailsModelToXmlSerializer.CheckIfPathIsValid(path));
 }
Example #3
0
 public void CheckIfPathIsValid_ShouldFailIfPathEmpty()
 {
     Assert.Throws <ArgumentException>("path", () => GameDetailsModelToXmlSerializer.CheckIfPathIsValid(""));
 }