예제 #1
0
        public void TrimShortest_Verify()
        {
            var setting = new TrimShortest();

            Assert.DoesNotThrow(() => SettingSerializer.Serialize(setting));
            Assert.Equal(SettingSerializer.Serialize(setting), "-shortest");
        }
예제 #2
0
        public void TrimShortest_Verify()
        {
            var setting = new TrimShortest();

            Assert.DoesNotThrow(() => { var s = setting.GetAndValidateString(); });
            Assert.Equal(setting.GetAndValidateString(), "-shortest");
        }