コード例 #1
0
ファイル: ExtensionsUnitTest.cs プロジェクト: mpostol/ASMD
        public void AddLocalizedTextTestMethod()
        {
            int _counter = 0;

            Extensions.AddLocalizedText("localeField1", "valueField1", ref m_Description, x => _counter++);
            Assert.AreEqual <int>(0, _counter);
            Assert.IsNotNull(m_Description);
            LocalizedText _description = m_Description;

            Extensions.AddLocalizedText("localeField1", "valueField1", ref m_Description, x => _counter++);
            Assert.AreEqual <int>(1, _counter);
            Assert.IsNotNull(m_Description);
            Assert.AreSame(_description, m_Description);
        }