Esempio n. 1
0
        public void TestInitialisedCorrectly()
        {
            NxIncrement inc = new NxIncrement("27493A6F-9D3F-4948-9565-A42AA176012C");
            string actual = inc.Create().OuterXml;
            string expected = "<Increment id=\"27493A6F-9D3F-4948-9565-A42AA176012C\" value=\"-1\" />";
            Assert.AreEqual(expected, actual);

            XmlNode node = inc.Create();
            Assert.AreEqual("-1", node.Attributes["value"].Value, "Incrementers must be initialised with -1");
        }
Esempio n. 2
0
 public void TestIdentifierIsCorrect()
 {
     NxIncrement inc = new NxIncrement("27493A6F-9D3F-4948-9565-A42AA176012C");
     string expected = "27493A6F-9D3F-4948-9565-A42AA176012C";
     Assert.AreEqual(expected, inc.Identifier);
 }