Ejemplo n.º 1
0
 public void FeatureList_RemovingNonExistantMember_Fails()
 {
     FeatureList fl = new FeatureList();
      add3Features(fl);
      int precount = fl.Children.Count;
      bool actual = fl.TryRemoveFeature("Doesnt Exist");
      Assert.AreEqual(expected: false,
     actual: actual);
      Assert.AreEqual(expected: precount,
     actual: fl.Children.Count);
 }
Ejemplo n.º 2
0
 public void FeatureList_RemovingExistingMember_Succeeds()
 {
     FeatureList fl = new FeatureList();
      add3Features(fl);
      int precount = fl.Children.Count;
      bool actual = fl.TryRemoveFeature("F2");
      Assert.AreEqual(expected: true,
     actual: actual);
      Assert.AreEqual(expected: precount - 1,
     actual: fl.Children.Count);
 }