Ejemplo n.º 1
0
        public void Should_Throw_Exception_When_AzureSAS_null()
        {
            var target = new AzureFileStorageSasInput {
                SuppliedInput = null
            };

            var exception = Should.Throw <InputException>(() => target.Validate(BaselineProvider.AzureFileStorage));

            exception.Message.ShouldBe("The azure file storage shared access signature is required when azure file storage is used for dashboard compare.");
        }
Ejemplo n.º 2
0
        public void Should_Normalize_SAS()
        {
            var target = new AzureFileStorageSasInput {
                SuppliedInput = "?sv=SAS"
            };

            var validatedSas = target.Validate(BaselineProvider.AzureFileStorage);

            validatedSas.ShouldBe("SAS");
        }