public void BadgeB_VerifyAccess_ShouldSucceed(int level, string access) { //Act var badgeB = new BadgeB(level); Console.WriteLine(badgeB.Access()); var expected = access; var actual = badgeB.Access(); //Assert Assert.AreEqual(expected, actual); }
public void BadgeB_AccessLevel3_ShouldReturnAccessDenied() { //Arrange var badge = new BadgeB(3); //Act var expected = "Access Denied"; var actual = badge.Access(); //Assert Assert.AreEqual(expected, actual); }