예제 #1
0
 public void IsSelectedTest()
 {
     setBuildings.SetValue(1, 0);
     Assert.IsFalse(setBuildings.IsSelected(0));
     Assert.IsTrue(setBuildings.IsSelected(1));
     Assert.IsFalse(setBuildings.IsSelected(2));
     setBuildings.SetValue(1, -1);
 }
예제 #2
0
 public void IsSelectedTest()
 {
     setBuildings.SetValue(1, 0);
     Assert.That(setBuildings.IsSelected(0), Is.False);
     Assert.That(setBuildings.IsSelected(1), Is.True);
     Assert.That(setBuildings.IsSelected(2), Is.False);
     setBuildings.SetValue(1, -1);
 }