Beispiel #1
0
public void QSPNotEqualsOriginalTextTest() {
MARC.Everest.DataTypes.QSP<MARC.Everest.DataTypes.INT> aValue = new MARC.Everest.DataTypes.QSP<MARC.Everest.DataTypes.INT>(), bValue = new MARC.Everest.DataTypes.QSP<MARC.Everest.DataTypes.INT>();
aValue.OriginalText = new MARC.Everest.DataTypes.ED(new System.Byte[] { 0 },"0");
aValue.NullFlavor = new MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>(MARC.Everest.DataTypes.NullFlavor.AskedUnknown);
aValue.UpdateMode = new MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.UpdateMode>(MARC.Everest.DataTypes.UpdateMode.Add);
aValue.Flavor = "0";
aValue.ValidTimeLow = new MARC.Everest.DataTypes.TS(DateTime.Parse("2011-1-10"));
aValue.ValidTimeHigh = new MARC.Everest.DataTypes.TS(DateTime.Parse("2011-1-10"));
aValue.ControlActRoot = "0";
aValue.ControlActExt = "0";
bValue.OriginalText = new MARC.Everest.DataTypes.ED(new System.Byte[] { 1 },"1");
bValue.NullFlavor = new MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.NullFlavor>(MARC.Everest.DataTypes.NullFlavor.AskedUnknown);
bValue.UpdateMode = new MARC.Everest.DataTypes.CS<MARC.Everest.DataTypes.UpdateMode>(MARC.Everest.DataTypes.UpdateMode.Add);
bValue.Flavor = "0";
bValue.ValidTimeLow = new MARC.Everest.DataTypes.TS(DateTime.Parse("2011-1-10"));
bValue.ValidTimeHigh = new MARC.Everest.DataTypes.TS(DateTime.Parse("2011-1-10"));
bValue.ControlActRoot = "0";
bValue.ControlActExt = "0";
Assert.AreNotEqual(aValue, bValue);
}
Beispiel #2
0
 public void QSPNotEqualsOriginalTextTest()
 {
     MARC.Everest.DataTypes.QSP <MARC.Everest.DataTypes.INT> aValue = new MARC.Everest.DataTypes.QSP <MARC.Everest.DataTypes.INT>(), bValue = new MARC.Everest.DataTypes.QSP <MARC.Everest.DataTypes.INT>();
     aValue.OriginalText   = new MARC.Everest.DataTypes.ED(new System.Byte[] { 0 }, "0");
     aValue.NullFlavor     = new MARC.Everest.DataTypes.CS <MARC.Everest.DataTypes.NullFlavor>(MARC.Everest.DataTypes.NullFlavor.AskedUnknown);
     aValue.UpdateMode     = new MARC.Everest.DataTypes.CS <MARC.Everest.DataTypes.UpdateMode>(MARC.Everest.DataTypes.UpdateMode.Add);
     aValue.Flavor         = "0";
     aValue.ValidTimeLow   = new MARC.Everest.DataTypes.TS(DateTime.Parse("2011-1-10"));
     aValue.ValidTimeHigh  = new MARC.Everest.DataTypes.TS(DateTime.Parse("2011-1-10"));
     aValue.ControlActRoot = "0";
     aValue.ControlActExt  = "0";
     bValue.OriginalText   = new MARC.Everest.DataTypes.ED(new System.Byte[] { 1 }, "1");
     bValue.NullFlavor     = new MARC.Everest.DataTypes.CS <MARC.Everest.DataTypes.NullFlavor>(MARC.Everest.DataTypes.NullFlavor.AskedUnknown);
     bValue.UpdateMode     = new MARC.Everest.DataTypes.CS <MARC.Everest.DataTypes.UpdateMode>(MARC.Everest.DataTypes.UpdateMode.Add);
     bValue.Flavor         = "0";
     bValue.ValidTimeLow   = new MARC.Everest.DataTypes.TS(DateTime.Parse("2011-1-10"));
     bValue.ValidTimeHigh  = new MARC.Everest.DataTypes.TS(DateTime.Parse("2011-1-10"));
     bValue.ControlActRoot = "0";
     bValue.ControlActExt  = "0";
     Assert.AreNotEqual(aValue, bValue);
 }