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); }
//Update disoriented checkbox private void Disoriented_Checked(object sender, RoutedEventArgs e) { abc.setDisoriented((bool)((CheckBox)sender).IsChecked); }