public static string AssignRandomPrize(PrizeDoors selectedDoor, IRandomPrizeDoorAssigner prizeDoor) { return(selectedDoor == prizeDoor.PrizeDoor() ? "serious" : "joke"); }
public void ShowAPrizeWhenAWinningDoorIsSelectedWithMemberData(PrizeDoors door, string prize, IRandomPrizeDoorAssigner randomPrizeDoorAssigner) { //Arrange //Act var result = Door.AssignRandomPrize(door, randomPrizeDoorAssigner); //Assert Assert.Equal(prize, result); }