Explorar el Código

Added missing test for "HasFlags"

Simon Lübeß hace 6 meses
padre
commit
a4a25d4353
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      IDEHelper/Tests/src/Enums.bf

+ 3 - 0
IDEHelper/Tests/src/Enums.bf

@@ -292,6 +292,9 @@ namespace Tests
 
 			Test.Assert(sizeof(EnumN) == sizeof(System.Interop.c_int));
 
+			Test.Assert(value.HasFlag(.A) == false);
+			Test.Assert(value.HasFlag(.B) == true);
+
 			Test.Assert(value.Underlying == 1);
 
 			ref System.Interop.c_int valueRef = ref value.UnderlyingRef;