public void AddMultipleSizesOfFilePath() { string filePath = this.GivenAStandardFilePath(); string ldpiFilePath = this.GivenALdpiFilePath(); string xxHdpiFilePath = this.GivenAXxhdpiFilePath(); AssetAndroid assetAndroid = new AssetAndroid(filePath); assetAndroid.Add(ldpiFilePath); var result = assetAndroid.Add(xxHdpiFilePath); Assert.IsTrue(result); Assert.That(assetAndroid.StandardFilePath, Is.EqualTo(filePath)); Assert.That(assetAndroid.LdpiFilePath, Is.EqualTo(ldpiFilePath)); Assert.IsNull(assetAndroid.MdpiFilePath); Assert.IsNull(assetAndroid.HdpiFilePath); Assert.IsNull(assetAndroid.XhdpiFilePath); Assert.That(assetAndroid.XxhdpiFilePath, Is.EqualTo(xxHdpiFilePath)); Assert.IsNull(assetAndroid.XxxhdpiFilePath); }
public void AddAnEqualFilePath() { string filePath = this.GivenAStandardFilePath(); AssetAndroid assetAndroid = new AssetAndroid(filePath); var result = assetAndroid.Add(filePath); Assert.IsTrue(result); Assert.That(assetAndroid.StandardFilePath, Is.EqualTo(filePath)); Assert.IsNull(assetAndroid.LdpiFilePath); Assert.IsNull(assetAndroid.MdpiFilePath); Assert.IsNull(assetAndroid.HdpiFilePath); Assert.IsNull(assetAndroid.XhdpiFilePath); Assert.IsNull(assetAndroid.XxhdpiFilePath); Assert.IsNull(assetAndroid.XxxhdpiFilePath); }
public void NotAddDifferentFilePath() { string filePath = this.GivenAStandardFilePath(); string otherFilePath = this.GivenAStandardFilePath("otherFile"); AssetAndroid assetAndroid = new AssetAndroid(filePath); var result = assetAndroid.Add(otherFilePath); Assert.IsFalse(result); Assert.That(assetAndroid.StandardFilePath, Is.EqualTo(filePath)); Assert.IsNull(assetAndroid.LdpiFilePath); Assert.IsNull(assetAndroid.MdpiFilePath); Assert.IsNull(assetAndroid.HdpiFilePath); Assert.IsNull(assetAndroid.XhdpiFilePath); Assert.IsNull(assetAndroid.XxhdpiFilePath); Assert.IsNull(assetAndroid.XxxhdpiFilePath); }