Provides some information about someone's mood.
Пример #1
0
 public void IsEqualToWorksWithStruct()
 {
     var inLove = new Mood { Description = "In love", IsPositive = true };
     Check.ThatEnum(inLove).IsEqualTo(inLove);
 }
Пример #2
0
 public void NotIsNullWorksWithNullable()
 {
     Mood? goodMood = new Mood();
     Check.That(goodMood).Not.IsNull();
 }
Пример #3
0
 public void NotIsNotNullThrowsWithNonNullNullable()
 {
     Mood? goodMood = new Mood();
     Check.That(goodMood).Not.IsNotNull();
 }
Пример #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]");
        }