public void AddLineToStory_NullReference_Args1() { var mock = new Mock <Story>(); IStoryService service = new StoryService(); service.AddLineToStory(mock.Object, null); }
public void AddLineToStory_AcceptTest() { var mock = new Mock <Story>(); IStoryService service = new StoryService(); var data = service.AddLineToStory(mock.Object, "TestLine"); var line = mock.Object.Lines.First(x => x.Content == "TestLine"); Assert.AreEqual(line, data.Data.Lines.First(x => x.Content == "TestLine")); }
public void AddLineToStory_NullReference_Args2() { IStoryService service = new StoryService(); service.AddLineToStory(null, "TestLine"); }
public void AddLineToStory_NullReference_BothArgs() { IStoryService service = new StoryService(); service.AddLineToStory(null, null); }