diff --git a/src/FileConventions.Test/DummyFiles/src/Foo/DummyFileUnderFooWithWrongNamespace2.fs b/src/FileConventions.Test/DummyFiles/src/Foo/DummyFileUnderFooWithWrongNamespace2.fs new file mode 100644 index 00000000..d631c774 --- /dev/null +++ b/src/FileConventions.Test/DummyFiles/src/Foo/DummyFileUnderFooWithWrongNamespace2.fs @@ -0,0 +1 @@ +namespace FooBuzz diff --git a/src/FileConventions.Test/FileConventions.Test.fs b/src/FileConventions.Test/FileConventions.Test.fs index 22dbc43e..21ad18b1 100644 --- a/src/FileConventions.Test/FileConventions.Test.fs +++ b/src/FileConventions.Test/FileConventions.Test.fs @@ -733,3 +733,18 @@ let NamespaceConvention6() = )) Assert.That(NotFollowingNamespaceConvention fileInfo, Is.EqualTo false) + + +[] +let NamespaceConvention7() = + let fileInfo = + (FileInfo( + Path.Combine( + dummyFilesDirectory.FullName, + "src", + "Foo", + "DummyFileUnderFooWithWrongNamespace2.fs" + ) + )) + + Assert.That(NotFollowingNamespaceConvention fileInfo, Is.EqualTo true)