コード例 #1
0
ファイル: FormatTests.cs プロジェクト: WildGenie/libgame
        public void ClassConvertWith()
        {
            var format    = new StringFormatTest("3");
            var converter = new FormatTestDuplicatedConverter2();

            Assert.AreEqual(format.ConvertWith <short>(converter), 3);
        }
コード例 #2
0
ファイル: FormatTests.cs プロジェクト: WildGenie/libgame
        public void ClassConvertWithThrowsExceptionIfDisposed()
        {
            var format    = new StringFormatTest("3");
            var converter = new FormatTestDuplicatedConverter2();

            format.Dispose();
            Assert.Throws <ObjectDisposedException>(() =>
                                                    format.ConvertWith <short>(converter));
        }