コード例 #1
0
        public void Initialize()
        {
            _pinyinBeautifierMock = new Mock<IPinyinBeautifier>();

            _objectUnderTest = new PinyinConverter();
            _objectUnderTest.Beautifier = _pinyinBeautifierMock.Object;
        }
コード例 #2
0
        public void ShouldInitializeBeautifierToDefault()
        {
            _objectUnderTest = new PinyinConverter();

            Assert.IsInstanceOf<PinyinBeautifier>(_objectUnderTest.Beautifier);
        }