Beispiel #1
0
        public void ProjectCache_GetCurrent()
        {
            // Arrange
            var expected = 2;
            var ps       = BaseTests.PrepPowerShell();

            ps.Invoke <string>().Returns(this._templates);
            ProjectCache.Cache.Shell = ps;
            ProjectCache.Invalidate();

            // Act
            var actual = ProjectCache.GetCurrent(false);

            // Assert
            Assert.AreEqual(expected, actual.Count());
        }