public void DrawingInhibited_DrawingDeferred_Correct() { var stubbedWindow = new StubbedWindow(); var sut = new StubbedConsoleControl(stubbedWindow) { Parent = stubbedWindow }; var deferrer1 = sut.DeferDrawing(); sut.DrawingInhibited.Should().BeTrue(); var deferrer2 = sut.DeferDrawing(); sut.DrawingInhibited.Should().BeTrue(); deferrer1.Dispose(); sut.DrawingInhibited.Should().BeTrue(); deferrer2.Dispose(); sut.DrawingInhibited.Should().BeFalse(); }