public void TestParseCustomerStrings() { //expecting 1 customer in level file short-n-sweet.txt var expectedCustomer = new Customer(new Shape(), null) { Name = "Alice", NextLevel = true, WhenToSpawn = 10, Points = 100, TimeToDeliver = 10, PlatformId = '1', DestinationPlatformId = 'J' }; var parsedCustomer = levelParser.ParseCustomerStrings(levelDictionary[Constants.CUSTOMERS]).First(); Assert.IsTrue( (expectedCustomer.Name == parsedCustomer.Name && expectedCustomer.NextLevel == parsedCustomer.NextLevel && expectedCustomer.WhenToSpawn == parsedCustomer.WhenToSpawn && expectedCustomer.Points == parsedCustomer.Points && expectedCustomer.TimeToDeliver == parsedCustomer.TimeToDeliver && expectedCustomer.PlatformId == parsedCustomer.PlatformId && expectedCustomer.DestinationPlatformId == parsedCustomer.DestinationPlatformId)); }