public async Task ExecuteNoIfStatement_AllCovered() { // Arrange var sut = new AwaitUsingReturnInIfStatementReproduction(); // Act int result = await sut.ExecuteNoIfStatement(); // Assert Assert.Equal(3, result); }
public async Task ExecuteReproduction_HasUncoveredLine() { // Arrange var sut = new AwaitUsingReturnInIfStatementReproduction(); // Act int resultTrue = await sut.ExecuteReproduction(true); int resultFalse = await sut.ExecuteReproduction(false); // Assert Assert.Equal(3, resultTrue); Assert.Equal(1, resultFalse); }
public async Task ExecuteUsingWithoutAwait_AllCovered() { // Arrange var sut = new AwaitUsingReturnInIfStatementReproduction(); // Act int resultTrue = await sut.ExecuteUsingWithoutAwait(true); int resultFalse = await sut.ExecuteUsingWithoutAwait(false); // Assert Assert.Equal(3, resultTrue); Assert.Equal(1, resultFalse); }