public void BasicEquals() { var a = new Polynomials.BinaryPolynomial("101011"); var b = new Polynomials.BinaryPolynomial("101011"); a.Equals(b).Should().BeTrue(); }
public void CopyNonEmpty() { var a = new Polynomials.BinaryPolynomial("101011"); var copy = a.Copy(); var expecting = new Polynomials.BinaryPolynomial("101011"); expecting.Equals(copy).Should().BeTrue(); object.ReferenceEquals(a, copy).Should().BeFalse(); }