[U] public void Eq() { IndexMetrics metrics = NodesStatsIndexMetric.All; IndexMetrics[] equal = { NodesStatsIndexMetric.All }; foreach (var t in equal) { (t == metrics).ShouldBeTrue(t); t.Should().Be(metrics); } metrics.Should().Be(NodesStatsIndexMetric.All); }
[U] public void NotEq() { IndexMetrics metrics = NodesStatsIndexMetric.All; IndexMetrics[] notEqual = { NodesStatsIndexMetric.Flush }; foreach (var t in notEqual) { (t != metrics).ShouldBeTrue(t); t.Should().NotBe(metrics); } metrics.Should().NotBe(NodesStatsMetric.All); }