コード例 #1
0
ファイル: StringTests.cs プロジェクト: standardfx/standard
        public void LengthTest()
        {
            string actual = "afds";

            SAssert.Length(actual, 4);
            XAssert.Throws <ArgumentException>(() => SAssert.Length(actual, 6));
            XAssert.Throws <ArgumentException>(() => SAssert.Length(actual, 2));
        }