mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-12-22 01:53:24 +00:00
Modif item pour passage en bdd
This commit is contained in:
parent
a1c4166d19
commit
783044bab7
8 changed files with 82 additions and 62 deletions
|
|
@ -1,6 +1,7 @@
|
|||
using AideDeJeu.ViewModels;
|
||||
using AideDeJeuLib;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AideDeJeuUnitTest
|
||||
{
|
||||
|
|
@ -8,17 +9,15 @@ namespace AideDeJeuUnitTest
|
|||
public class UnitTest1
|
||||
{
|
||||
[TestMethod]
|
||||
public void TestMethod1()
|
||||
public async Task TestMethod1()
|
||||
{
|
||||
var store = new StoreViewModel();
|
||||
var item = store.ToItem(null, AideDeJeu.Tools.Helpers.GetResourceString($"AideDeJeu.Data.sandbox.md"));
|
||||
var md = item.Markdown;
|
||||
if(item is Items)
|
||||
var children = await item.GetChildrenAsync();
|
||||
foreach(var iitem in children)
|
||||
{
|
||||
foreach(var iitem in item as Items)
|
||||
{
|
||||
md += iitem.Markdown;
|
||||
}
|
||||
md += iitem.Markdown;
|
||||
}
|
||||
Assert.IsNotNull(md);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue