public void CanReturnSalmonFreshOrSalt() { // Arrange Salmon salmon = new Salmon("Nemo"); string expected = "I can swim in fresh and salt water!"; // Act string returnFromMethod = salmon.FreshOrSalt(); // Assert Assert.Equal(expected, returnFromMethod); }
static void Main(string[] args) { Human human = new Human("Andrew"); human.IsTalking(); human.ProCreating(); human.IsRunning(); human.Sleep(); human.FormOfProcreation(); human.LeadingTheHouse(); Cat cat = new Cat("Razzle"); cat.IsMeowing(); cat.Sleep(); cat.IsRunning(); cat.ProCreating(); cat.FormOfProcreation(); cat.LeadingTheHouse(); Penguin penguin = new Penguin("Tom"); penguin.IsSwimming(); penguin.Singing(); penguin.ProCreating(); penguin.FormOfProcreation(); penguin.Moving(); Eagle eagle = new Eagle("Bob"); eagle.IsFlying(); eagle.Singing(); eagle.ProCreating(); eagle.FormOfProcreation(); eagle.Moving(); Shark shark = new Shark("Sharina"); shark.SmellBlood(); shark.IsSwimming(); shark.ProCreating(); shark.FormOfProcreation(); shark.FreshOrSalt(); Salmon salmon = new Salmon("Flipper"); salmon.SwimUpStream(); salmon.IsSwimming(); salmon.ProCreating(); salmon.FormOfProcreation(); salmon.FreshOrSalt(); }