diff --git a/src/Twilio/Types/App.cs b/src/Twilio/Types/App.cs index 43ba6fa9e..d398f2139 100644 --- a/src/Twilio/Types/App.cs +++ b/src/Twilio/Types/App.cs @@ -1,5 +1,3 @@ -using System; - namespace Twilio.Types { /// @@ -17,11 +15,6 @@ public class App : IEndpoint /// App name public App(string app) { - if (string.IsNullOrEmpty(app)) - { - throw new ArgumentException("Parameter 'app' cannot be null or empty.", nameof(app)); - } - if (!app.ToLower().StartsWith(PREFIX)) { app = PREFIX + app; diff --git a/test/Twilio.Test/Types/AppTest.cs b/test/Twilio.Test/Types/AppTest.cs index b798cbc2d..f5ea64e7f 100644 --- a/test/Twilio.Test/Types/AppTest.cs +++ b/test/Twilio.Test/Types/AppTest.cs @@ -1,6 +1,5 @@ -using System; +using System; using NUnit.Framework; -using Twilio.Exceptions; using Twilio.Types; namespace Twilio.Tests.Types @@ -15,7 +14,6 @@ public void TestToString() Assert.AreEqual("app:YOU", new App("YOU").ToString()); Assert.AreEqual("APP:HIM", new App("APP:HIM").ToString()); Assert.AreEqual("aPp:her", new App("aPp:her").ToString()); - Assert.Throws(() => new App("").ToString()); Assert.AreEqual("app:AP12345?mycustomparam1=foo&mycustomparam2=bar", new App("app:AP12345?mycustomparam1=foo&mycustomparam2=bar").ToString()); Assert.AreEqual("app:AP12345?mycustomparam1=foo&mycustomparam2=bar", new App("AP12345?mycustomparam1=foo&mycustomparam2=bar").ToString()); }