コード例 #1
0
        public void Name_SetNull_ReturnsEmpty()
        {
            var result = TextContainer.Parse(Properties.Resources.text_container_1);

            result.Name = null;

            Assert.AreEqual(string.Empty, result.Name);
        }
コード例 #2
0
        public void GetKey_NotFoundKey_ThrowsKeyNotFoundException()
        {
            var result = TextContainer.Parse(Properties.Resources.text_container_1);

            result.SetCulture(CultureInfo.InvariantCulture);

            result.GetText("invalidKey");
        }