public void EmptyStationAreEqualTest() { IStreamable s1 = IRadio.MakeStation(); IStreamable s2 = IRadio.MakeStation(); bool result = s1.Equals(s2); Assert.AreEqual(result, true); }
public void StationObjectAreEqualTest() { IStreamable s1 = IRadio.MakeStation("Station 1", "Best radio station eva", "radio.com"); IStreamable s2 = IRadio.MakeStation("Station 1", "Best radio station eva", "radio.com"); bool result = s1.Equals(s2); Assert.AreEqual(result, true); }
private void quickPlayButton_Click(object sender, RoutedEventArgs e) { if (nameTextBox.Text != "" && urlTextBox.Text != "") { IStreamable quickPlayStation = IRadio.MakeStation("", nameTextBox.Text, urlTextBox.Text); _mainWindow.PlayStation(quickPlayStation); Close(); } }
public void StationCreation_HasCorrect_Url() { IStreamable result = IRadio.MakeStation("stationID", "stationName", "https://stationURL.com/"); Assert.That(result.URL.ToString(), Is.EqualTo("https://stationurl.com/")); }
public void StationCreation_HasCorrect_Name() { IStreamable result = IRadio.MakeStation("stationID", "stationName", "https://stationURL.com/"); Assert.That(result.Name, Is.EqualTo("stationName")); }
public void DefaultStationCreation_HasCorrect_Name() { IStreamable result = IRadio.MakeStation(); Assert.That(result.Name, Is.EqualTo("")); }