Exemplo n.º 1
0
        public void IsFieldSetTest()
        {
            MockFieldMap fieldmap = new MockFieldMap();
            BooleanField field    = new BooleanField(200, true);

            Assert.That(fieldmap.IsSetField(field), Is.EqualTo(false));
            Assert.That(fieldmap.IsSetField(field.Tag), Is.EqualTo(false));
            fieldmap.SetField(field);
            Assert.That(fieldmap.IsSetField(field), Is.EqualTo(true));
            Assert.That(fieldmap.IsSetField(field.Tag), Is.EqualTo(true));
        }
Exemplo n.º 2
0
 public void ClearAndIsEmptyTest()
 {
     MockFieldMap fieldmap = new MockFieldMap();
     BooleanField field = new BooleanField(200, true);
     Assert.That(fieldmap.IsEmpty(), Is.EqualTo(true));
     fieldmap.SetField(field);
     Assert.That(fieldmap.IsEmpty(), Is.EqualTo(false));
     fieldmap.Clear();
     Assert.That(fieldmap.IsEmpty(), Is.EqualTo(true));
     Group g = new Group(100, 101);
     fieldmap.AddGroup(g);
     Assert.That(fieldmap.IsEmpty(), Is.EqualTo(false));
     fieldmap.Clear();
     Assert.That(fieldmap.IsEmpty(), Is.EqualTo(true));
 }
Exemplo n.º 3
0
        public void ClearAndIsEmptyTest()
        {
            MockFieldMap fieldmap = new MockFieldMap();
            BooleanField field    = new BooleanField(200, true);

            Assert.That(fieldmap.IsEmpty(), Is.EqualTo(true));
            fieldmap.SetField(field);
            Assert.That(fieldmap.IsEmpty(), Is.EqualTo(false));
            fieldmap.Clear();
            Assert.That(fieldmap.IsEmpty(), Is.EqualTo(true));
            Group g = new Group(100, 101);

            fieldmap.AddGroup(g);
            Assert.That(fieldmap.IsEmpty(), Is.EqualTo(false));
            fieldmap.Clear();
            Assert.That(fieldmap.IsEmpty(), Is.EqualTo(true));
        }
Exemplo n.º 4
0
 public void IsFieldSetTest()
 {
     MockFieldMap fieldmap = new MockFieldMap();
     BooleanField field = new BooleanField(200, true);
     Assert.That(fieldmap.IsSetField(field), Is.EqualTo(false));
     Assert.That(fieldmap.IsSetField(field.Tag), Is.EqualTo(false));
     fieldmap.SetField(field);
     Assert.That(fieldmap.IsSetField(field), Is.EqualTo(true));
     Assert.That(fieldmap.IsSetField(field.Tag), Is.EqualTo(true));
 }
Exemplo n.º 5
0
        public void CharFieldTest()
        {
            CharField field = new CharField(100, 'd');

            fieldmap.SetField(field);
            CharField refield = new CharField(100);

            fieldmap.GetField(refield);
            Assert.That('d', Is.EqualTo(refield.Obj));
            field.Obj = 'e';
            fieldmap.SetField(field);
            fieldmap.GetField(refield);
            Assert.That('e', Is.EqualTo(refield.Obj));
        }