public void CreatorShouldAssembleTileAttributeShoulApplyFilePrefix()
 {
     var entry = new XmlAttributeEntry
     {
         Name = "name",
         Value = "a.htm",
         Type = TileType.File.ToString()
     };
     var config = new MockConfiguration("a.htm", DateTime.Now) { Factory = _locatorFactory };
     var factory = new TilesFactory(config);
     var tile = new TemplateTileAttributeCreator().Create(entry, factory);
     Assert.That(tile, Is.Not.Null);
     config.FilePrefix = @"nonexisting\";
     try
     {
         new TemplateTileAttributeCreator().Create(entry, factory);
     } catch (TileException Te)
     {
         Console.WriteLine(Te.Message);
         Assert.That(Te.Message.Contains("a.htm could not be found"));
     }
 }
 public void CreatorShouldAssembleTileAttributeWithEmbeddedFileTile()
 {
     var entry = new XmlAttributeEntry
                     {
                         Name = "name",
                         Value = "a.htm",
                         Type = TileType.File.ToString()
                     };
     var factory = new TilesFactory(new MockConfiguration("a.htm", DateTime.Now) {Factory = _locatorFactory });
     var tile = new TemplateTileAttributeCreator().Create(entry, factory);
     Assert.That(tile, Is.Not.Null);
     Assert.That(tile.Name, Is.EqualTo("name"));
     Assert.That(tile.Value, Is.Not.Null);
     Assert.That(tile.Value.GetType(), Is.EqualTo(typeof (TemplateTile)));
     var templateTile = (TemplateTile) tile.Value;
     var template = (FileTemplate) templateTile.Template;
     Assert.That(template.Path.EndsWith("a.htm"));
 }