Aspects.Logging.Tests.Extensions.FormattableObjectExtensionTests.WhenProvidingAFieldShouldReturnTheFormat C# (CSharp) Method

WhenProvidingAFieldShouldReturnTheFormat() private method

private WhenProvidingAFieldShouldReturnTheFormat ( ) : void
return void
        public void WhenProvidingAFieldShouldReturnTheFormat()
        {
            const string Intfield = "{IntField}";
            const int TestInt = 15;
            FormatableObject formatableObject = new FormatableObject
            {
                IntField = 15
            };
            string str = formatableObject.ToString(Intfield);
            str.Should().Be(TestInt.ToString(), "because because the provided string had no property declared");
        }