public void ICanGenerateResourceNameWithInvalidCharacters() { MvxResourceProviderStub stub = new MvxResourceProviderStub(); string numberPath = stub.GetResourceNameForPath("abc1-2~3"); Assert.Equal("abc1_2_3", numberPath); }
public void ICanGenerateResourceNameWithDoubleSlashes() { MvxResourceProviderStub stub = new MvxResourceProviderStub(); string numberPath = stub.GetResourceNameForPath("abc//def"); Assert.Equal("abc.def", numberPath); }
public void ICanGenerateResourceNameWithNumberFolders() { MvxResourceProviderStub stub = new MvxResourceProviderStub(); string numberPath = stub.GetResourceNameForPath("abc1/2/3"); Assert.Equal("abc1._2._3", numberPath); }