stephenhaunts / ProfanityDetector

This is a simple library for detecting profanities within a text string.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Namespace being the same as the class name seems to be causing imports to not work as expected

eloisetaylor5693 opened this issue · comments

After downloading the package I was forced to use the package like this:
var filter = new ProfanityFilter.ProfanityFilter();

Expected syntax didn't compile:

using NUnit.Framework;
using ProfanityFilter;

namespace ProfanityPoc
{
    public class ProfanityDetectorTests
    {
        [Test]
        public void Test1()
        {
            var filter = new ProfanityFilter();
            Assert.That();
        }
    }
}

Thanks. I will take a look. This is using the nugget package directly instead of from source?

Using the nuget package. Thanks :-)