public void AddSameUsedNamespaceTwice_Success() { using (var expression = new CSharpScript()) { expression.AddUsedNamespace("System.Collections"); expression.AddUsedNamespace("System.Collections"); expression.GenerateCode(); expression.Compile(); Assert.True(true); // If we go here with no exception, we are good } }