Exemple #1
0
        public void Expansion_DoesNotLoadChildren_WhenAlreadyExpanded()
        {
            var sut = _expandedTvivm;

            Assert.IsTrue(sut.IsExpanded);

            sut.IsExpanded = true;

            MockThreadingService.Verify(m => m.StartTask(It.IsAny <Func <Task> >()), Times.Never);
        }
Exemple #2
0
        public void Expansion_DoesNotLoadChildren_WhenAlreadyLoading()
        {
            var sut = _collpasedTvivm;

            sut.IsLoading = true;

            sut.IsExpanded = true;

            MockThreadingService.Verify(m => m.StartTask(It.IsAny <Func <Task> >()), Times.Never);
        }
Exemple #3
0
        public void Expansion_LoadsChildren_WhenNotAlreadyExpanded_AndWhenNotLoading()
        {
            var sut = _collpasedTvivm;

            Assert.IsFalse(sut.IsExpanded);
            Assert.IsFalse(sut.IsLoading);

            sut.IsExpanded = true;

            MockThreadingService.Verify(m => m.StartTask(It.IsAny <Func <Task> >()), Times.Once);
        }