public void Equals_Operator_Returns_False_If_One_Identifier_Null() { bool equal = new EntityIdentifier("Zulu") == (EntityIdentifier)null; equal.Should().BeFalse(); equal = null == new EntityIdentifier(57); equal.Should().BeFalse(); }
public void Not_Equals_Operator_Returns_True_If_One_Identifier_Null() { bool notEqual = new EntityIdentifier("Hotel") != null; notEqual.Should().BeTrue(); notEqual = null != new EntityIdentifier(Guid.NewGuid()); notEqual.Should().BeTrue(); }
public void Implicit_Conversion_From_Null_String_Creates_Null_Reference_Identifier() { string identifierAsString = null; EntityIdentifier identifier = identifierAsString; identifier.Should().BeNull(); }
public void Implicit_Conversion_To_String_Creates_Expected_String() { string identifier = new EntityIdentifier("Tango"); identifier.Should().Be("Tango"); }