public void GetFormattedText_DefaultValue_ReturnNull()
        {
            // Setup
            var textBlock = new TextBlock();

            // Call
            string formattedText = TextBlockExtensions.GetFormattedText(textBlock);

            // Assert
            Assert.IsNull(formattedText);
        }
        public void GetFormattedText_TextSet_ReturnText()
        {
            // Setup
            const string xmlToConvert = "<text>test <bold>bold text</bold></text>";
            var          textBlock    = new TextBlock();

            TextBlockExtensions.SetFormattedText(textBlock, xmlToConvert);

            // Call
            string formattedText = TextBlockExtensions.GetFormattedText(textBlock);

            // Assert
            Assert.AreEqual(xmlToConvert, formattedText);
        }