Exemple #1
0
        public void ToString__ReturnsTitleWithAt()
        {
            var test = new GtdContext {
                Title = "Hello"
            };

            Assert.Equal("@Hello", test.ToString());
        }
Exemple #2
0
        public void Description_WhenSet_RaisesPropertyChanged()
        {
            const string newDescription = "New description";

            var test = new GtdContext();

            test.AssertThatChangeNotificationIsRaisedBy(x => x.Description).
            When(() => test.Description = newDescription);
            Assert.Equal(newDescription, test.Description);
        }