コード例 #1
0
        public static async Task ShouldExistAsync(this StorageElement element)
        {
            var exists = await element.ExistsAsync();

            exists.ShouldBeTrue($"The element at {element.Path} should exist, but doesn't.");
        }
コード例 #2
0
        public static async Task ShouldNotExistAsync(this StorageElement element)
        {
            var exists = await element.ExistsAsync();

            exists.ShouldBeFalse($"The element at {element.Path} should not exist, but does.");
        }