public void BackgroundColorSpans_with_the_same_name_are_equal() { var one = new BackgroundColorSpan("green", Ansi.Color.Foreground.Green); var two = new BackgroundColorSpan("green", Ansi.Color.Foreground.Green); one.Equals(two).Should().BeTrue(); one.Invoking(code => code.Equals(null)).Should().NotThrow <NullReferenceException>(); }