Esempio n. 1
0
 public void FromByteArrayTest()
 {
     UUIDEncoderHelper target = new UUIDEncoderHelper();
     byte[] value = new Guid("00004038-f08c-bd11-b23e-10b96e4ef00d").ToByteArray();
     Guid expected = new Guid("38400000-8cf0-11bd-b23e-10b96e4ef00d");
     Guid actual;
     actual = target.FromByteArray(value);
     Assert.AreEqual(expected.ToString(), actual.ToString());
     //Assert.Inconclusive("Verify the correctness of this test method.");
 }
Esempio n. 2
0
 public void ToByteArrayTest()
 {
     UUIDEncoderHelper target = new UUIDEncoderHelper();
     Guid value = new Guid("38400000-8cf0-11bd-b23e-10b96e4ef00d");
     Guid expected = new Guid("00004038-f08c-bd11-b23e-10b96e4ef00d");
     byte[] expectedByteArray = expected.ToByteArray();
     byte[] actualByteArray = target.ToByteArray(value);
     string expectedByteArrayString = Stringerize(expectedByteArray);
     string actualByteArrayString = Stringerize(actualByteArray);
     Assert.AreEqual(expectedByteArrayString, actualByteArrayString);
     //            Assert.Inconclusive("Verify the correctness of this test method.");
 }