public void EqualsTest()
 {
     ShortGuid target = new ShortGuid(); // TODO: Initialize to an appropriate value
     object obj = null; // TODO: Initialize to an appropriate value
     bool expected = false; // TODO: Initialize to an appropriate value
     bool actual;
     actual = target.Equals(obj);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
 public void TryParseTest()
 {
     string value = string.Empty; // TODO: Initialize to an appropriate value
     ShortGuid sguid = new ShortGuid(); // TODO: Initialize to an appropriate value
     ShortGuid sguidExpected = new ShortGuid(); // TODO: Initialize to an appropriate value
     bool expected = false; // TODO: Initialize to an appropriate value
     bool actual;
     actual = ShortGuid.TryParse(value, out sguid);
     Assert.AreEqual(sguidExpected, sguid);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
 public void ValueTest()
 {
     ShortGuid target = new ShortGuid(); // TODO: Initialize to an appropriate value
     string expected = string.Empty; // TODO: Initialize to an appropriate value
     string actual;
     target.Value = expected;
     actual = target.Value;
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
 public void ShortGuidConstructorTest()
 {
     Guid guid = new Guid(); // TODO: Initialize to an appropriate value
     ShortGuid target = new ShortGuid(guid);
     Assert.Inconclusive("TODO: Implement code to verify target");
 }
 public void ShortGuidConstructorTest1()
 {
     string value = string.Empty; // TODO: Initialize to an appropriate value
     ShortGuid target = new ShortGuid(value);
     Assert.Inconclusive("TODO: Implement code to verify target");
 }
 public void op_ImplicitTest3()
 {
     ShortGuid shortGuid = new ShortGuid(); // TODO: Initialize to an appropriate value
     string expected = string.Empty; // TODO: Initialize to an appropriate value
     string actual;
     actual = shortGuid;
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
 public void op_InequalityTest()
 {
     ShortGuid x = new ShortGuid(); // TODO: Initialize to an appropriate value
     ShortGuid y = new ShortGuid(); // TODO: Initialize to an appropriate value
     bool expected = false; // TODO: Initialize to an appropriate value
     bool actual;
     actual = (x != y);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
 public void op_ImplicitTest1()
 {
     Guid guid = new Guid(); // TODO: Initialize to an appropriate value
     ShortGuid expected = new ShortGuid(); // TODO: Initialize to an appropriate value
     ShortGuid actual;
     actual = guid;
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
 public void HasValueTest()
 {
     ShortGuid target = new ShortGuid(); // TODO: Initialize to an appropriate value
     bool actual;
     actual = target.HasValue;
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
 public void GuidTest()
 {
     ShortGuid target = new ShortGuid(); // TODO: Initialize to an appropriate value
     Guid expected = new Guid(); // TODO: Initialize to an appropriate value
     Guid actual;
     target.Guid = expected;
     actual = target.Guid;
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
 public void GetHashCodeTest()
 {
     ShortGuid target = new ShortGuid(); // TODO: Initialize to an appropriate value
     int expected = 0; // TODO: Initialize to an appropriate value
     int actual;
     actual = target.GetHashCode();
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
Exemple #12
0
        public static bool TryParse(string value, out ShortGuid sguid)
        {
            if (string.IsNullOrEmpty(value))
            {
                sguid = null;
                return false;
            }

            try
            {
                sguid = new ShortGuid(value);
                return true;
            }
            catch
            {
                sguid = ShortGuid.Empty;
                return false;
            }
        }