static void Main(string[] args) { Student Potter; Potter.surname = " Potter"; Potter.inizialy = "J.P"; Potter.group = 2; Potter.uspevaemost = "отлично"; double[] a = { 1, 2, 3, 4, 5, 6 }; Console.WriteLine(a.Average()); Potter.DisplayInfo(); Console.ReadKey(); }
public override bool CheckForNeighbouringBuildings() { Debug.Log("Checks for Brickyard"); List <Brickyard> chainBuildings = GetNeighbouringBuildings <Brickyard>(); if (nextInChain == null && chainBuildings.Count >= 1) { Debug.Log(">= 1"); nextInChain = chainBuildings[0]; AssignCarrierDestination(); } Debug.Log("Checks for Potter"); List <Potter> chainBuildings2 = GetNeighbouringBuildings <Potter>(); if (alternativeChain == null && chainBuildings2.Count >= 1) { Debug.Log(">= 1"); alternativeChain = chainBuildings2[0]; AssignCarrierAlternativeDestination(); } return((nextInChain == null && chainBuildings.Count >= 1) || (alternativeChain == null && chainBuildings2.Count >= 1)); }
public void Check_book_prices_with_discounts(int[] bookArray, double expectedPrice) { Potter potter = new Potter(bookArray); Assert.That(potter.Price, Is.EqualTo(expectedPrice)); }