public void Test_NT_TSC_Prop_Initialized() { Niawa.Threading.ThreadStatusContainer tsc = new Niawa.Threading.ThreadStatusContainer(); //set value tsc.Initialized = true; //assertion Assert.True(tsc.Initialized, "Value doesn't match expectation"); }
public void Test_NT_TSC_Prop_FinalizedDate() { Niawa.Threading.ThreadStatusContainer tsc = new Niawa.Threading.ThreadStatusContainer(); DateTime testDate = DateTime.Now; //set value tsc.FinalizedDate = testDate; //assertion Assert.AreEqual(testDate, tsc.FinalizedDate, "Value doesn't match expectation"); }
public void Test_NT_TSC_Prop_Description() { Niawa.Threading.ThreadStatusContainer tsc = new Niawa.Threading.ThreadStatusContainer(); string testValue = "Test value"; //set value tsc.Description = testValue ; //assertion Assert.AreEqual(testValue, tsc.Description, "Value doesn't match expectation"); }
public void Test_NT_TSC_Prop_ErrorCount() { Niawa.Threading.ThreadStatusContainer tsc = new Niawa.Threading.ThreadStatusContainer(); int testValue = 3; //set value tsc.ErrorCount = testValue; //assertion Assert.AreEqual(testValue, tsc.ErrorCount, "Value doesn't match expectation"); }
public void Test_NT_TSC_Prop_ThreadActive() { Niawa.Threading.ThreadStatusContainer tsc = new Niawa.Threading.ThreadStatusContainer(); //set value tsc.ThreadActive = true; //assertion Assert.True(tsc.ThreadActive, "Value doesn't match expectation"); }
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"); }