Example #1
0
        public void FriendlyString_Variable_Variable(string sample)
        {
            NetworkCredential cred = sample.ToNetworkCredential();

            string back = cred.ToFriendlyString();

            Assert.Equal(sample, back);
        }
Example #2
0
        public string ToRawString(object value)
        {
            NetworkCredential nc = value as NetworkCredential;

            return(nc?.ToFriendlyString());
        }