public void ICanGenerateResourceNameWithNumbers() { MvxResourceProviderStub stub = new MvxResourceProviderStub(); string numberPath = stub.GetResourceNameForPath("123"); Assert.Equal("_123", numberPath); }
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 ICanGenerateResourceNameWithVersionNumbers() { MvxResourceProviderStub stub = new MvxResourceProviderStub(); string numberPath = stub.GetResourceNameForPath("abc1.2.3"); Assert.Equal("abc1._2._3", numberPath); }