Beispiel #1
0
        public void Test_FormFileExtensions_GetExtension_WithoutFullstop()
        {
            // Arrange
            var formFile = new FormFile(null, 0, 0, "ExampleName", "ExampleName.txt");

            // Act
            var ext = formFile.GetExtension();

            // Assert
            ext.Should().Be("txt");
        }