Ejemplo n.º 1
0
            public void Succeed_With_Name()
            {
                var id = new BarId(Guid.Parse("83b8710937a84b818c829162c1b405b6"));

                Check.That(id.Guid).IsEqualTo(Guid.Parse("83b8710937a84b818c829162c1b405b6"));
                Check.That(id.ToString()).IsEqualTo("{83B87109-37A8-4B81-8C82-9162C1B405B6}");
                Check.That(id.GetHashCode()).Not.IsEqualTo(0);
                Check.That(id.DebuggerDisplay).IsEqualTo("{83B87109-37A8-4B81-8C82-9162C1B405B6}");
            }
Ejemplo n.º 2
0
            public void Succeed_With_DefaultConstructor()
            {
                var id = new BarId();

                Check.That(id.Guid).IsEqualTo(Guid.Empty);
                Check.That(id.ToString()).IsEqualTo("{00000000-0000-0000-0000-000000000000}");
                Check.That(id.GetHashCode()).IsEqualTo(0);
                Check.That(id.DebuggerDisplay).IsEqualTo("{00000000-0000-0000-0000-000000000000}");
            }
Ejemplo n.º 3
0
            public void ReturnsFormatted_For_CustomGuid()
            {
                var id = new BarId(Guid.Parse("83b8710937a84b818c829162c1b405b6"));

                Check.That(id.ToString()).IsEqualTo("{83B87109-37A8-4B81-8C82-9162C1B405B6}");
            }
Ejemplo n.º 4
0
            public void ReturnsZeros_For_DefaultConstructor()
            {
                var id = new BarId();

                Check.That(id.ToString()).IsEqualTo("{00000000-0000-0000-0000-000000000000}");
            }