public void Avatar_WhenParameterlesslyConstructed_IsInstantiated() { //Arrange: A avatar pointer is declared. Avatar avatar; //Act: The pointer is constructed without parameters. avatar = new Avatar(); //Assert: The pointer is no longer null. Assert.AreNotEqual(null, avatar); }
public virtual void Format() { if (username == null){ username = string.Empty; } if (Short_Alias == null){ Short_Alias = string.Empty; } if(Long_Alias == null){ Long_Alias = string.Empty; } if (avatar == null){ avatar = new Avatar(); } }