public void Test_NU_S_SerialId()
        {
            int serialIDRoot = 123;
            int serialIDSession = 456;
            int serialIDSerial = 789;
            string serialIDFormatted = "123-456-789";

            //increment serial ID from manually created
            Niawa.Utilities.SerialId id = new Utilities.SerialId(serialIDRoot, serialIDSession, serialIDSerial);

            Assert.AreEqual(serialIDRoot, id.IdRoot, "SerialID Root does not match");
            Assert.AreEqual(serialIDSession, id.IdSession, "SerialID Session does not match");
            Assert.AreEqual(serialIDSerial, id.IdSerial, "SerialID Serial does not match");
            Assert.AreEqual(serialIDFormatted, id.ToString(), "SerialID Formatted does not match");
        }
        public void Test_NT_TS_Prop_ParentNodeID()
        {
            int serialIDRoot1 = 123;
            int serialIDSession1 = 456;
            int serialIDSerial1 = 789;

            int serialIDRoot2 = 1123;
            int serialIDSession2 = 1456;
            int serialIDSerial2 = 1789;

            Utilities.SerialId serialID1 = new Utilities.SerialId(serialIDRoot1, serialIDSession1, serialIDSerial1);
            Utilities.SerialId serialID2 = new Utilities.SerialId(serialIDRoot2, serialIDSession2, serialIDSerial2);

            //create mock event raiser
            MockedObjects.MockedEventRaiser evtRaiser = new MockedObjects.MockedEventRaiser("TestAppGroup", "TestAppName", "TestAppInstance", null);

            //create thread status
            Threading.ThreadStatus threadStatus = new Threading.ThreadStatus("TestThreadStatus", 60, serialID1.ToString(), serialID2.ToString(), evtRaiser);

            //assertion
            Assert.AreEqual(serialID2.ToString(), threadStatus.ParentNodeID, "Thread Status ParentNodeID value is incorrect");
        }
        public void Test_NT_TSC_Prop_ParentNodeID()
        {
            Niawa.Threading.ThreadStatusContainer tsc = new Niawa.Threading.ThreadStatusContainer();

            int serialIDRoot = 123;
            int serialIDSession = 456;
            int serialIDSerial = 789;

            Utilities.SerialId testSerialID = new Utilities.SerialId(serialIDRoot, serialIDSession, serialIDSerial);

            //set value
            tsc.ParentNodeID = testSerialID.ToString();

            //assertion
            Assert.AreEqual(testSerialID.ToString(), tsc.ParentNodeID, "Value doesn't match expectation");
        }