Provides some information about someone's mood.
Esempio n. 1
0
 public void IsEqualToWorksWithStruct()
 {
     var inLove = new Mood { Description = "In love", IsPositive = true };
     Check.ThatEnum(inLove).IsEqualTo(inLove);
 }
Esempio n. 2
0
 public void NotIsNullWorksWithNullable()
 {
     Mood? goodMood = new Mood();
     Check.That(goodMood).Not.IsNull();
 }
Esempio n. 3
0
 public void NotIsNotNullThrowsWithNonNullNullable()
 {
     Mood? goodMood = new Mood();
     Check.That(goodMood).Not.IsNotNull();
 }
Esempio n. 4
0
        public void NotIsNotNullThrowsWithNonNullNullable()
        {
            Mood? goodMood = new Mood();

            Check.ThatCode(() =>
            {
                Check.That(goodMood).Not.IsNotNull();
            })
            .Throws<FluentCheckException>()
            .WithMessage(Environment.NewLine+ "The checked nullable value must be null." + Environment.NewLine + "The checked value:" + Environment.NewLine + "\t[NFluent.Tests.Extensions.Mood]");
        }