public void IsAnalysisAllowedFileTest_MultipleExtensionsSupported_FileWithNotSupportedExtension_ReturnsFalse() { // Given DexterConfig dexterConfig = new DexterConfig(); dexterConfig.AddSupportedFileExtensions(new string[] { "c", "cpp", "java" }); // When bool result = dexterConfig.IsFileSupportedForAnalysis("file.cs"); // Then Assert.IsFalse(result); }
public void IsAnalysisAllowedFileTest_OneExtensionSupported_FileWithSupportedExtensions_ReturnsTrue() { // Given DexterConfig dexterConfig = new DexterConfig(); dexterConfig.AddSupportedFileExtensions(new string[] { "cpp" }); // When bool result = dexterConfig.IsFileSupportedForAnalysis("file.cpp"); // Then Assert.IsTrue(result); }