public void VerifyProcessToKill() { shouldShowHint = false; var r = ListStub.ProcessToKill(new List <string>() { "Explorer.exe", "Teams.exe", "VisualStudio.exe" }); Assert.AreEqual(true, !r.Contains("Explorer.exe") && r.Count == 2); shouldShowHint = false; }
public void LastOrDefault_OfNonEmptyIList_ShouldNotEnumerate() { // # Arrange ListStub <string> enumerable = new ListStub <string>(new List <string> { "Saro", "Emre", "Onur", "Ahmet", "Barış" }); // # Act enumerable.LastOrDefault(); // # Assert enumerable.IsEnumerated.Should().BeFalse(); }