public void AddNumberValueAddsANumerValueToTheElement() { var val = Fixture.Create <double>(); var sut = new Eq(); sut.AddNumberValue(val); sut.ToString().ShouldBe(string.Format(@"<Eq><Value Type=""Number"">{0}</Value></Eq>", val)); }