public Task ParseEnvironmentVariable_failure()
    {
        StringBuilder builder = new StringBuilder();

        builder.Equals(new StringBuilder());
        var exception = Assert.Throws <Exception>(() => ClipboardEnabled.ParseEnvironmentVariable("foo"));

        return(Verify(exception));
    }
Beispiel #2
0
 public void ParseEnvironmentVariable()
 {
     Assert.False(ClipboardEnabled.ParseEnvironmentVariable(null));
     Assert.False(ClipboardEnabled.ParseEnvironmentVariable("false"));
     Assert.True(ClipboardEnabled.ParseEnvironmentVariable("true"));
 }
Beispiel #3
0
    public Task ParseEnvironmentVariable_failure()
    {
        var exception = Assert.Throws <XunitException>(() => ClipboardEnabled.ParseEnvironmentVariable("foo"));

        return(Verifier.Verify(exception));
    }
 public Task ParseEnvironmentVariable_failure()
 {
     return(Verifier.Throws(() => ClipboardEnabled.ParseEnvironmentVariable("foo")));
 }