//Update circulation condition private void CirculationBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { String circulation; ComboBox cb = (ComboBox)sender; if (cb.SelectedIndex == -1) { circulation = "notSet"; } else { circulation = ((ComboBoxItem)e.AddedItems[0]).Content as string; } abc.setCirculation(circulation); }
public void getterSetterTest() { ABC abc = new ABC(); abc.setConsciousness("set"); Assert.AreEqual(abc.getConsciousness(), "set"); abc.setDisoriented(true); Assert.AreEqual(abc.getDisoriented(), true); abc.setAirways("set"); Assert.AreEqual(abc.getAirways(), "set"); abc.setBreathing("set"); Assert.AreEqual(abc.getBreathing(), "set"); abc.setBreathingFrequency(5); Assert.AreEqual(abc.getBreathingFrequency(), 5); abc.setCirculation("set"); Assert.AreEqual(abc.getCirculation(), "set"); abc.setCirculationFrequency(55); Assert.AreEqual(abc.getCirculationFrequency(), 55); }