public void LoadContent(ContentManager theContentManager, string theAssetName) { tex = theContentManager.Load<Texture2D>(theAssetName); assetName = theAssetName; sourceRect = new Rectangle(0, 0, (int)(tex.Width * Scale), (int)(tex.Height * Scale)); }
public void LoadContentTest() { Sprite target = new Sprite(); // TODO: Initialize to an appropriate value ContentManager theContentManager = null; // TODO: Initialize to an appropriate value string theAssetName = string.Empty; // TODO: Initialize to an appropriate value target.LoadContent(theContentManager, theAssetName); Assert.Inconclusive("A method that does not return a value cannot be verified."); }