Beispiel #1
0
        public void GetTempPathInDirectory_GivenNoDirectory_SuccessfullyConcatUsingTempPath()
        {
            string expected = Path.Combine(Path.GetTempPath(), NullReferenceTypes.Path.RandomFileName);

            Assert.AreEqual(
                NullReferenceTypes.GetTempPathInDirectory(), expected);
        }
Beispiel #2
0
 bool IsNull <T>(T thing)
 {
     //return (thing is ValueType value) ?
     //    NullReferenceTypes.IsNull(value) && !NullReferenceTypes.IsNotNull(value) :
     return(NullReferenceTypes.IsNull <T>(thing) && !NullReferenceTypes.IsNotNull <T>(thing));
 }