You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
668 B
24 lines
668 B
using Biblioteque_de_Class;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Notus_UnitTest_Note
|
|
{
|
|
public class AddImageTests
|
|
{
|
|
[Test]
|
|
public void AddImage_WhenImageLinkIsValid_ImageAddedToList()
|
|
{
|
|
User owner = new User("Owner", "owner@example.com", "password");
|
|
Note note = new Note("Test Note", "logo.png", owner);
|
|
string imageLink = "image.png";
|
|
string position = "top";
|
|
note.AddImage(imageLink, position);
|
|
Assert.That(note.GetImageList().Count, Is.EqualTo(1));
|
|
}
|
|
}
|
|
}
|