public void ShouldGetTheSamePendingTasks() { // arrange var stubTaskDatabase = new FakeTaskDatabase(); // act & assert stubTaskDatabase.GetPendingTasks().Should().BeSameAs(stubTaskDatabase.GetPendingTasks()); }
public void ShouldGetTheSamePendingTasks() { // arrange var stubTaskDatabase = new FakeTaskDatabase(); // act & assert stubTaskDatabase.GetPendingTasks().Should().BeSameAs(stubTaskDatabase.GetPendingTasks()); }
public void ShouldBeQuiet() { // arrange var stubTaskDatabase = new FakeTaskDatabase(); var item = ItemHelper.CreateInstance(Database.GetDatabase("master")); // act & assert stubTaskDatabase.Disable(this.task); stubTaskDatabase.Enable(this.task); stubTaskDatabase.GetPendingTasks().Should().BeEmpty(); stubTaskDatabase.MarkDone(this.task); stubTaskDatabase.Remove(this.task); stubTaskDatabase.RemoveItemTasks(item); stubTaskDatabase.RemoveItemTasks(item, typeof(Task)); stubTaskDatabase.Update(this.task, false); stubTaskDatabase.UpdateItemTask(this.task, false); }
public void ShouldBeQuiet() { // arrange var stubTaskDatabase = new FakeTaskDatabase(); var item = ItemHelper.CreateInstance(Database.GetDatabase("master")); // act & assert stubTaskDatabase.Disable(this.task); stubTaskDatabase.Enable(this.task); stubTaskDatabase.GetPendingTasks().Should().BeEmpty(); stubTaskDatabase.MarkDone(this.task); stubTaskDatabase.Remove(this.task); stubTaskDatabase.RemoveItemTasks(item); stubTaskDatabase.RemoveItemTasks(item, typeof(Task)); stubTaskDatabase.Update(this.task, false); stubTaskDatabase.UpdateItemTask(this.task, false); }