gpt4 book ai didi

c# - Assert.NotNull(object anObject) 与 Assert.IsNotNull(object anObject)

转载 作者:太空狗 更新时间:2023-10-29 20:09:43 32 4
gpt4 key购买 nike

NUnit.Framework.Assert 命名空间中有这两个方法。

我只是找不到它们之间的区别。我也很好奇什么时候使用哪个。

最佳答案

Two forms are provided for the True, False, Null and NotNull conditions. The "Is" forms are compatible with earlier versions of the NUnit framework, while those without "Is" are provided for compatibility with NUnitLite.

知道了 here .

关于c# - Assert.NotNull(object anObject) 与 Assert.IsNotNull(object anObject),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33276838/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com