コード例 #1
0
        public void TestEmpty()
        {
            FormattableString formattableString = TestFormatEmpty.FormattableWith(new { Replacement1 = Replacement1, Replacement2 = Replacement2 });

            Assert.Equal(TestFormatEmpty, formattableString.Format);
            Assert.Equal(0, formattableString.ArgumentCount);
            Assert.Equal(TestFormatEmpty, formattableString.ToString());
        }
コード例 #2
0
ファイル: FormatWithTests.cs プロジェクト: vuchl/FormatWith
        public void TestEmpty()
        {
            string replacement = TestFormatEmpty.FormatWith(new { Replacement1 = Replacement1, Replacement2 = Replacement2 });

            Assert.Equal(TestFormatEmpty, replacement);
        }